<?php
require_once '../scripts/config.php';
require_once '../scripts/functions.php';

$query='
      Select 	username
      From	`'.$config['mysql']['database'].'`.`Users`
      Where     server = "'.$_GET['serverId'].'"
      And	username = "'.$_GET['user'].'"
    ';
    
$resource = runQuery($query);

if(mysql_num_rows($resource) == 1){
	echo "YES";
} else{
	echo "NO";
}
?>